package com.sg.business.commons.labelprovider.work;

import com.sg.business.model.User;
import com.sg.business.model.UserTask;
import com.sg.widgets.commons.labelprovider.ConfiguratorColumnLabelProvider;

public class WorkflowHistoryActualownerLabelProvider extends
		ConfiguratorColumnLabelProvider {

	@Override
	public String getText(Object element) {
		if (element instanceof UserTask) {
			UserTask userTask = (UserTask) element;
			User actualOwner = userTask.getActualOwner();
			return actualOwner.getLabel();
		}
		return super.getText(element);
	}

}
